﻿using FluentNHibernate.Mapping;

namespace TaskKernel.Domain.Nhibernate.Mappings
{
    public class ReaderMap : ClassMap<Reader>
    {
        public ReaderMap()
        {
            Table("task_Readers");
            Id(x => x.UID, "GID").GeneratedBy.GuidNative();
            References(x => x.Login, "AccountGID");
            References(x => x.Task, "TaskGID");
        }
    }
}